home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / checkbox / patches / 0.1-ubuntu13 next >
Text File  |  2009-11-05  |  457b  |  22 lines

  1. #!/bin/sh
  2.  
  3. package_old=`echo $1 | sed 's|checkbox|hwtest|'`
  4. config_old="/etc/hwtest.d/$package_old.ini"
  5. config_new="/etc/checkbox.d/$1.ini"
  6.  
  7. sed -e 's|hwtest|checkbox|g' -e 's|Hardware|System|' < $config_old > $config_new
  8.  
  9. if [ "$1" = "checkbox" ]; then
  10.     cat <<'EOF' >>$config_new
  11. [checkbox/plugins/boot_prompt]
  12. enable = false
  13.  
  14. [checkbox/plugins/delay_prompt]
  15. timeout = 0
  16.  
  17. EOF
  18. fi
  19.  
  20. rm -f $config_old
  21. rmdir --ignore-fail-on-non-empty `dirname $config_old`
  22.